$(document).ready(function(){
    $('.sort_option').click(function(event){
        $.ajax({
            type: 'POST',
            url: webroot + 'deals/searchOption/' + event.target.id,
            success: function(message) {
                window.location.reload();
            }
        });
    });
});